{% extends "recommend_result.html" %}

{% block recommend_result1 %}
{#    {% for rec in result %}#}
{#        <div class="card" style="margin-left: 15px">{{ rec }}</div>#}
{#    {% endfor %}#}
    {% for item1 in result %}
        {% for item in item1 %}
            <div class="card" style="width: 100%;margin-bottom: 20px">
                <div style="margin-left: 15px;margin-top: 15px">
                    {% for imgSrc in item[16] %}
                     <img src="{{ imgSrc }}" class="rounded" alt="...">
                    {% endfor %}
                 </div>
                <div class="card-body">
                    <h5 class="card-title">
                        <span class="text-primary fw-bold">
                            {{ item[3] }}
                        </span>
                        <span class="text-danger">
                            {{ item[2] }}分
                        </span>
                        <span class="text-success">
                            {{ item[6] }}年
                        </span>
                    </h5>
                    <p class="card-text">
                        简介：{{ item[14] }}
                    </p>
                </div>
            </div>
        {% endfor %}
    {% endfor %}
    <form id="back" style="margin-top: 15px;" method="get" action="/recommend" class="form-inline ">
        <button type="submit" style="margin-left: 15px" class="btn btn-primary mb-2">返回</button>
    </form>
{% endblock recommend_result1 %}